<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>{$title}</title>
<JS href="../Public/js/jq.js" />
<script>
function check()
{
	s='';
	if($("#title").val() == '') s+='请输入院校名称\n';
	$('select').each(function(){
		if($(this).val()== '-1')
			{
			
			s +=$(this).children().eq(0).text()+'\n';
			}
	})
	
	if(s!='')
		{
		alert(s);
		return false;
		}
	
}

$().ready(function(){
	if('{$cnt.recommend}' == 1)
		{
		$('#recommend').attr('checked','checked');
		}
	_attach = '{$cnt.attach}'.split(',');
	for(i in _attach)
	{
		if(_attach[i] == '1')
		{
			$('#985').attr('checked','checked');			
		}else if(_attach[i] == '2')
		{
			$("#211").attr('checked','checked');
		}else if(_attach[i] == '3')
		{
			$('#yjs').attr('checked','checked');
		}
	}
	
})

</script>
</head>
<body>
<div class="addschoolItem">
<form action="__URL__/addschoolitem/" method="post"
	onsubmit="return check()"><present name="cnt"><input
	type="hidden" value='{$cnt.id}' name="id" /></present>
<p>院校名称：<input type="text" name="title" id="title"
	value="{$cnt.title}" /> 院校所在地：<select name="address">
	<option value="-1">请选择所在地</option>
	<volist name="syssetting.0" id="vo">
	<option value="{$key}"<eq name="cnt.address" value="$key">
	selected="selected"</eq>>{$vo}</option>
	</volist>

</select></p>
<p>学历层次:<select name="education">
	<option value="-1">请选择学历层次</option>
	<volist name="syssetting.1" id="vo">
	<option value="{$key}"<eq name="cnt['education']" value="$key">selected="selected"</eq>
	>{$vo}</option>
	</volist>
</select> 院校隶属： <select name="belonging">
	<option value="-1">请选择院校隶属</option>
	<volist name="syssetting.2" id="vo">
	<option value="{$key}"<eq name="cnt.belonging" value="$key">selected="selected"
	</eq>>{$vo}</option>
	</volist>
</select> 办学类型： <select name="schooltype">
	<option value="-1">请选择办学类型</option>
	<volist name="syssetting.3" id="vo">
	<option value="{$key}"<eq name="cnt.schooltype" value="$key">
	selected="selected" </eq> >{$vo}</option>
	</volist>
</select></p>

<p>院校类型： <select name="typeofinstitution">
	<option value="-1">请选择院校类型</option>
	<volist name="syssetting.4" id="vo">
	<option value="{$key}"<eq name="cnt.typeofinstitution"
		value="$key"> selected="selected" </eq> >{$vo}</option>
	</volist>
</select> 联系电话：<input type="text" name="telephone" value="{$cnt.telephone}" />
院校地址：<input type="text" name="postal" value="{$cnt.postal}" />
 院校特色：<input	type="checkbox" name="attach[]" value="2" id='211' />211 
<input	type="checkbox" name="attach[]" value="1" id='985' />985 
<input	type="checkbox" name="attach[]" value="3" id='yjs' />研究生院</p>
<p>
<p>推荐院校<input type="checkbox" id="recommend" name="recommend" value="1" /></p>
<input type="submit" <present name="cnt">value="保存" <else /> value="添加"</present> /><input type="reset" value="重置" /></p>

</form>
</div>
</body>
</html>